package com.tedu.bill.demo5;

/**
 * Author：毕龙
 * Date: 2024/4/21 15:36
 */
public class Sub extends Super{
    static String superMessage = "子类的静态成员变量";
    String superMsg = "子类的非静态成员变量";
    static {
        System.out.println(superMessage);
        System.out.println("子类静态代码块");
    }
    {
        System.out.println(superMsg);
        System.out.println("子类的动态代码块");
    }
    public Sub(){
        System.out.println("子类的构造方法");
    }
}
